package com.system.healthproject.model.admin.paramsbean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

@ApiModel
public class AddPatientParams {
    @NotBlank(message = "手机号不能为空")
    @ApiModelProperty(name = "loginPhone",notes = "手机号",dataType = "String",required = true)
    private String loginPhone;

    @NotBlank(message = "姓名不能为空")
    @ApiModelProperty(name = "patientNick",notes = "患者姓名",dataType = "String",required = true)
    private String patientNick;

    @NotNull(message = "性别不能为空")
    @ApiModelProperty(name = "patientSex",notes = "患者性别",dataType = "String",required = true)
    private Integer patientSex;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(name = "patientBirthday",notes = "患者出生年月(yyyy-MM-dd)",dataType = "String",required = true)
    private Date patientBirthday;

    @NotNull(message = "发布年龄不能为空")
    @ApiModelProperty(name = "illage",notes = "发病年龄",dataType = "String",required = true)
    private Integer illage;

    @NotNull(message = "省份识别码不能为空")
    @ApiModelProperty(name = "province",notes = "省",dataType = "String",required = true)
    private Integer province;

    @NotNull(message = "城市识别码不能为空")
    @ApiModelProperty(name = "city",notes = "市",dataType = "String",required = true)
    private Integer city;

    public String getLoginPhone() {
        return loginPhone;
    }

    public void setLoginPhone(String loginPhone) {
        this.loginPhone = loginPhone;
    }

    public String getPatientNick() {
        return patientNick;
    }

    public void setPatientNick(String patientNick) {
        this.patientNick = patientNick;
    }

    public Integer getPatientSex() {
        return patientSex;
    }

    public void setPatientSex(Integer patientSex) {
        this.patientSex = patientSex;
    }

    public Date getPatientBirthday() {
        return patientBirthday;
    }

    public void setPatientBirthday(Date patientBirthday) {
        this.patientBirthday = patientBirthday;
    }

    public Integer getIllage() {
        return illage;
    }

    public void setIllage(Integer illage) {
        this.illage = illage;
    }

    public Integer getProvince() {
        return province;
    }

    public void setProvince(Integer province) {
        this.province = province;
    }

    public Integer getCity() {
        return city;
    }

    public void setCity(Integer city) {
        this.city = city;
    }
}
